<template>
  <el-form ref="form" :model="form" label-width="80px">
    <h3>重置密码</h3>
    <el-form-item label="旧密码">
      <el-input v-model="form.oldPwd" show-password></el-input>
    </el-form-item>
    <el-form-item label="新密码">
      <el-input v-model="form.newPwd" show-password></el-input>
    </el-form-item>
    <el-form-item label="确认密码">
      <el-input v-model="form.confirmPwd" show-password></el-input>
    </el-form-item>
    <el-form-item>
      <el-button type="primary" @click="onSubmit">提交</el-button>
    </el-form-item>
  </el-form>
</template>

<script>
  export default {
    name: 'ChangePwd',
    data() {
      return {
        form: {}
      }
    },
    methods: {
      onSubmit() {
        console.log(this.form);
      }
    },
  }
</script>

<style scoped lang="scss">
  .el-form {
    width: 500px;
    height: 300px;
    border: 1px solid gray;
    text-align: center;
    .el-form-item {
      width: 300px;
      margin: 0 auto 22px;
    }
  }
</style>